#include <stdio.h>

#include "message.h"

int main(void) {
	message message = {
		.connection = connection_bluetooth,
		.device = 12,
		.timestamp = 34,
		.size = 56,
		.content = "test",
		//
	};
	message_display(&message);
	cJSON *json = message_to_json(&message, NULL);
	const char *s = cJSON_PrintUnformatted(json);
	printf("json = %s\n", s);
	cJSON_Delete(json);
	// message_destory(&message);
	return 0;
}